package ynu.edu.order.client;

import org.springframework.stereotype.Component;
import ynu.edu.common.result.Result;
import ynu.edu.order.vo.UserVO;

/**
 * 用户服务Feign客户端降级处理
 */
@Component
public class UserClientFallback implements UserClient {

    @Override
    public Result<UserVO> getUserById(Long id) {
        UserVO userVO = new UserVO();
        userVO.setId(id);
        userVO.setUsername("未知用户");
        return Result.success(userVO);
    }
} 